<template>
  <a-page style="background-color: #fff">
    <div class="a-blog row justify-center">
      <div v-if="instance" class="col-xl-9 col-lg-10 col-md-11 col-sm-12 col-xs-12 q-mx-sm">
        <div><h1 class="size-32">{{ instance.title }}</h1></div>
        <div class="text-content" v-html="instance.content"></div>
      </div>
      <a-loading :visible="!instance"></a-loading>
    </div>
  </a-page>
</template>

<script>
  export default {
    name: 'aBlog',
    props: {
      id: {
        type: Number,
        required: true
      }
    },
    data () {
      return {
        instance: null
      }
    },
    created () {
      this.getRequest({
        api: '/api/blog/{id}/',
        id: this.id
      })
    },
    computed: {},
    methods: {}
  }
</script>

<style lang="stylus">
</style>
